package com.cjy.Runnable;

import java.util.ArrayList;
import java.util.List;

public class TestRunnable {
    public static void main(String[] args) {
        Thread thread1 = new Thread(new Other("fake"));
        ArrayList<Student> list = new ArrayList<>();
        list.add(new Student(1,"A"));
        list.add(new Student(2,"B"));
        list.add(new Student(3,"C"));
        list.add(new Student(4,"D"));
        Thread thread3 = new Thread(new RunnableTest(list));
        Thread thread2 = new Thread(new Other("再见"));

        thread1.start();
        thread2.start();
        thread3.start();
    }
}
